import axios from '../../plugins/axios.js';

const state = {
	column:[]
}

const actions = {
	column({state,commit},{_limit,_page}={}){
		axios.get('/news/column',{params:{_limit:_limit||30,_page:_page||1}})
		.then(
			res=>{
				commit('column',res.data)
			}
		)
	}
}

const mutations = {
	column:(state,payload)=>{
		state.column=payload
	}
}

export default {
	namespaced:true,
	state,actions,mutations
}